package com.dreamliner.lib.lame;

import android.media.AudioFormat;

/**
 * @author chenzj
 * @Title: PCMFormat
 * @Description: 类的描述 -
 * @date 2017/6/30 23:08
 * @email admin@chenzhongjin.cn
 */
public enum PCMFormat {

    PCM_8BIT(1, AudioFormat.ENCODING_PCM_8BIT),

    PCM_16BIT(2, AudioFormat.ENCODING_PCM_16BIT);

    private int bytesPerFrame;
    private int audioFormat;

    PCMFormat(int bytesPerFrame, int audioFormat) {
        this.bytesPerFrame = bytesPerFrame;
        this.audioFormat = audioFormat;
    }

    public int getBytesPerFrame() {
        return bytesPerFrame;
    }

    public int getAudioFormat() {
        return audioFormat;
    }

}
